package com.lagou.ui;

import com.lagou.dao.IAccountDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestIOC {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("bean.xml");
        IAccountDao as = (IAccountDao)ac.getBean("accountDao");
        as.saveAccount();
    }
}
